package com.settlement.system.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 发退货字段配置表 Mapper 接口
 * @author hc
 * @since 2022-07-26
 */
public interface TblWpSendReturnSqlConfigMapper extends BaseMapper {

    /**
     * 通过字段查询发退货sql
     * @param fieldName 字段
     * @return sql
     */
    @Select("SELECT SQL_STR FROM TBL_WP_SEND_RETURN_SQL_CONFIG WHERE FIELD_NAME=#{fieldName}")
    String selectByFieldName(@Param("fieldName") String fieldName);
}

